//
//  ViewController.m
//  EncryptoTest
//
//  Created by Rocky on 16/4/7.
//  Copyright © 2016年 Rocky. All rights reserved.
//

#import "ViewController.h"
#import <CommonCrypto/CommonDigest.h> 
#import "NSString+encrypto.h"
//
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSString* originStr = @"Man";
    NSData* originData = [originStr dataUsingEncoding:NSUTF8StringEncoding];
    NSString* encodeResult = [originData base64EncodedStringWithOptions:NSDataBase64EncodingEndLineWithLineFeed];
    NSLog(@"encodeResult===:%@",encodeResult);
    NSLog(@"encodeResult===:%@",originStr.base64);
    NSLog(@"md5=====%@",originStr.md5);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
